package com.ideal.manage.esms.repository.project;

import com.ideal.manage.esms.bean.project.EquipmentManage;
import com.ideal.manage.esms.repository.framework.BaseRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * Created By Dai On 2018/4/25
 * Remark: 工程配置 - 对象管理 - 设备管理 Repository
 */
public interface EquipmentManageRepository extends BaseRepository<EquipmentManage, String> {
    @Query("select e.id from EquipmentManage e where e.isValid=1 and e.project.id=?1")
    List<String> findIdListByProjectId(String id);
}
